<script>
	$(document).ready(function () {
		$("#PInfoTrigger").click(function () {
			$("#PInfo").slideToggle(1500);
		});
	});
</script>
<div class="registration">

	<table class="profile"  id="PInfoTrigger" style="color:grey;">
		<tr >
			<th colspan="3">
				Лична информация
			</th>
		</tr>
	</table>
	<form action="?page=profile" method="post" class="registrationForm" class="cmxform">
		<table width="760" id="PInfo" style="display: block;">
				<tr>
					<td width="110px">
						Малко име :
					</td>
					<td>
						<input type="text" name="fname" id="fname" maxlength="15"
						       value="<?php if (isset($_SESSION["login"]))
							       echo $_SESSION["login"]->getFirstName(); ?>"/>
					</td>
				</tr>
				<tr>
					<td>
						Фамилия :
					</td>
					<td>
						<input type="text" name="lname" id="lname" maxlength="15"
						       value="<?php if (isset($_SESSION["login"]))
							       echo $_SESSION["login"]->getLastName(); ?>"/>
					</td>
				</tr>
				<tr>
					<td>
						E-Mail адрес :
					</td>
					<td>
						<input type="email" name="email" id="email" maxlength="30"
						       value="<?php if (isset($_SESSION["login"]))
							       echo $_SESSION["login"]->getEmail(); ?>"/>

						<div id="person_email" class="error"></div>

					</td>
				</tr>
				<tr>
					<td>
						Нова парола :
					</td>
					<td>
						<input type="password" name="newpass" id="newpass" maxlength="15" value=""/>
					</td>
				</tr>
				<tr>
					<td>
						Стара парола :
					</td>
					<td>
						<input type="password" name="pass" id="pass" maxlength="15" value=""/>
					</td>
				</tr>
				<tr>
					<td>
						<input type="submit" name="personal" value="Промени" id="personal"/>
					</td>
					<td>

					</td>
				</tr>
		</table>
	</form>
</div>


